<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">	
	<ui:param name="addTypeViewBean" value="#{commonContentViewBean.parent}" />
	<ui:param name="sortViewBean" value="#{commonContentViewBean}"></ui:param>
	<ui:param name="compId" value="#{addTypeViewBean.id}" />
	<ui:param name="compTitle" value="新建板块分类" />	
	<ui:param name="compToggleable" value="true" />
	<ui:define name="compContent">
	   <center>
	   <h:panelGrid columns="2">	   
	   	<h:panelGroup style="float: right;">
	     	<h:outputText value="板块名称："/>
	 	</h:panelGroup>	 	
		<h:panelGroup style="float: left;">
			<h:inputText id="#{addTypeViewBean.id}_typeName" value="#{sortViewBean.bbsSortEntity.sortname}" style="width: 200px;"/>
		</h:panelGroup>		
	   </h:panelGrid>
	   </center>
	</ui:define>
	<ui:define name="compButtons">
		<p:commandButton actionListener="#{bbsSortAction.save}"
			title="保存" 
			onstart="this.disabled=true"
			onclick="#{commonContentViewBean.id}_dialog.hide();"
			image="./img/icons/add.png" 
			value="保存" 
			style="margin:5px;"
			update="#{addTypeViewBean.id}_form">
			<h:inputHidden value="#{addTypeViewBean.id}"/>
		</p:commandButton>				
		<p:commandButton 
		    title="关闭" 
		    image="./img/icons/cancel.png"
		    onclick="#{commonContentViewBean.id}_dialog.hide();" 
		    type="button" 
			value="关闭" 
			style="margin:5px;">
		</p:commandButton>
	</ui:define>
	
</ui:composition>
